<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ page contentType="text/html; charset=UTF-8"%>
<%@ page pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<html>
	<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <script type="text/javascript">
    	$(document).ready(function(){
  	      	var fields = [ 	      	            
	        	{field:'id',title:'机构号',width:120,align:'center'},
	        	{field:'deptname',title:'机构名称',width:260,align:'center'},
	        	{field:'depttypename',title:'机构类型',width:80,align:'center'},
	        	{field:'deptaddr',title:'机构地址',width:260,align:'center'},
	        	{field:'telephone',title:'联系电话',width:120,align:'center'},
	        	{field:'updeptno',title:'上级机构号',width:120,align:'center'}
	      	];
    	
    		$('#dept_table').treegrid({url:'queryDeptTree.action',
    			onLoadError: function(){alert('系统错误，服务器可能已关闭！')},
    			treeField:'id',idField:'id',columns:[fields],striped:'true'});
     		$('#query_dept_panel').panel();
    	});
    </script>
	</head>
	<body>
	
    <div id="query_dept_panel" collapsible="false" fit="true" title="查询机构" 
    	resizable="false" collapsible="false" minimizable="false" maximizable="false" 
    	closable="true" icon="icon-save" class="jquery_panel">
    	<table id="dept_table" title="机构信息表" singleSelect="true" fit="true" fitColumns="true"></table>
    </div>
    
    </body>
</html>